<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

<div class="box" id="as" style="width: 200px;height: 200px;background: red;">

1111

</div>

</body>
</html>
<script src="https://cdn.bootcss.com/jquery/3.1.0/jquery.min.js"></script>
<script>
    var p;
    $.ajax({
        url: 'demo.json',
        type: 'get',
        dataType: 'json',
        success: function(data){
            console.table(data);
            console.log(data);
            p =`${data.code},,,${data.message},,,${data.data},,,${data.serviceTime},,,${data.code}`;
            $(".box").text(p);

        }
    })


</script>